﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

#pragma once
#include "GmepCommonSettings.h"
#include "GapDocumentStatesManager.h"

namespace gap
{
    enum class DocumentStates;
}
namespace gmep
{    
    class GMEP_COMMONSETTINGS_EXPORT GmepDocumentStateSetting
    {
    public:
        static GmepDocumentStateSetting* Get();
        /// \brief 获取当前文档状态
        gap::DocumentStates GetDocumentState() const;
        /// \brief 设置当前文档状态
        void SetDocumentState(const gap::DocumentStates& documentState);

    private:
        GmepDocumentStateSetting();
  
    private:
        gap::DocumentStates m_DocumentState = gap::DocumentStates::Unknow;
    };
}

